package com.example.crmdemo.Crm.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.crmdemo.Crm.entity.Customer;
import com.example.crmdemo.Crm.mapper.CustomerMapper;
import com.example.crmdemo.Crm.service.CustomerService;
import org.springframework.stereotype.Service;

@Service
public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> implements CustomerService {

    @Override
    public boolean save(Customer customer) {
        customer.setState("新建");
        return super.save(customer);
    }

    @Override
    public boolean updateById(Customer customer) {
        customer.setState("修改");
        return super.updateById(customer);
    }
}
